max date by group pandas

37

df_new = df[df.groupby('col')['date'].transform('max') == df['date']]

Comments

Submit
0 Comments